export const tableOption = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  searchMenuSpan: 6,
  menu: false,
  addBtn: false,
  refreshBtn: true,
  columnBtn: true,
  menuWidth: 100,
  height: "60vh",
  column: [
    {
      type: "input",
      label: "工单号",
      prop: "docNo",
      search: true,
      width: 130,
      span: 12,
    },
    {
      type: "input",
      label: "品号",
      prop: "itemCode",
      search: true,
      width: 130,
      span: 12,
    },
    {
      type: "input",
      label: "流程图号",
      prop: "flowChartNo",
      width: 130,
      span: 12,
    },
    {
      type: "select",
      label: "车间",
      prop: "workshopId",
      span: 12,
      dicUrl: "/admin-api/o3-pfoc/workshop/getWorkshopList",
      dicMethod: "get",
      props: {
        label: "workshopName",
        value: "id",
      },
      search: true,
      searchLabelWidth: 100,
    },
    {
      type: "select",
      label: "产线",
      prop: "productLineId",
      span: 12,
      dicUrl: "/admin-api/o3-pfoc/realityproductlinemain/getLineList",
      dicMethod: "get",
      props: {
        label: "realityLineName",
        value: "id",
      },
      search: true,
    },
    /*{
      "type": "select",
      "label": "产线",
      "prop": "productLineName",
      "span": 12,
      search: true
    },*/
    {
      type: "input",
      label: "工位",
      prop: "workPositionName",
      span: 12,
    },
    {
      type: "select",
      label: "工序",
      prop: "processName",
      span: 12,
      search: true,
      overHidden: true,
      dicUrl: "/admin-api/o3-pfoc/pfocprocess/getPfocProcessList",
      dicMethod: "get",
      props: {
        label: "processName",
        value: "processName",
      },
    },
    {
      type: "input",
      label: "工段",
      prop: "workshopSection",
      span: 12,
    },
    {
      type: "input",
      label: "时段",
      prop: "startTime",
      width: 90,
      span: 12,
      formatter: (val) => {
        return val.startTime + "-" + val.endTime;
      },
    },
    {
      type: "input",
      label: "投入数量",
      prop: "investQty",
      span: 12,
    },
    {
      type: "select",
      label: "报废类别",
      prop: "scrapReason",
      search: true,
      span: 12,
      dicUrl: "/admin-api/o3-pfoc/scraplibrary/getScrapLibraryList",
      dicMethod: "get",
      props: {
        label: "scrapName",
        value: "scrapName",
      },
    },
    {
      type: "input",
      label: "报废数量",
      prop: "scrapQty",
      span: 12,
    },
    {
      type: "input",
      label: "报工时间",
      prop: "reportTime",
      span: 12,
    },
  ],
};
